<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>differenceWith</title>
</head>

<body>
    <script>
        const differenceWith = (a, b, handler = (a, b) => a === b) =>
            arr.filter(a => val.findIndex(b => handler(a, b)) === -1);
        console.log(
            differenceWith(
                [1, 1.2, 1.5, 3, 0],
                [1.9, 3, 0],
                (a, b) => Math.round(a) === Math.round(b)
            ), // [1, 1.2]
            differenceWith([1, 1.2, 1.3], [1, 1.3, 1.5]) // [1.2]
        );
    </script>
</body>

</html>